
<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="catalogList.title"/></title>
    <meta name="heading" content="<fmt:message key='catalogList.heading'/>"/>
    <meta name="menu" content="MaterialMenu"/>
    <script language="Javascript" >
        function procFormSubmission()
        {
            var form = document.getElementById("actualForm");
            alert(form.action);
            form.action = "catalogActual.html";
            alert(form.action);
            form.submit();
        }

    </script>
</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
           onclick="location.href='<c:url value="/editCatalog.html"/>'"
           value="<fmt:message key="button.add"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="catalogs" value="catalogs" scope="request"/>
<br><br>
<display:table name="catalogs" class="table" requestURI="" id="catalogs" export="true" pagesize="25">
    <display:column href="editCatalog.html"
                    paramId="id" paramProperty="id">
        Edit
    </display:column>
    <display:column property="nameLang" sortable="true" titleKey="catalog.name"/>
    <display:column property="code" sortable="true" titleKey="catalog.code"/>
    <display:column property="observationLang" sortable="true" titleKey="catalog.observation"/>
    <display:column href="catalogActual.html" paramId="id" paramProperty="id" autolink="true" titleKey="catalog.actual" media="html">
        <input type="checkbox" <c:if test="${catalogs.actual}">checked="checked"</c:if>/>
    </display:column>

    <display:setProperty name="paging.banner.item_name" value="catalog"/>
    <display:setProperty name="paging.banner.items_name" value="catalogs"/>
    <display:setProperty name="export.excel.filename" value="Catalog List.xls"/>
    <display:setProperty name="export.csv.filename" value="Catalog List.csv"/>
    <display:setProperty name="export.pdf.filename" value="Catalog List.pdf"/>
    <display:setProperty name="paging.banner.some_items_found" value=""/>
    <display:setProperty name="paging.banner.all_items_found" value=""/>

</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    //highlightTableRows("catalogList");
</script>